package com.totoro.spring.spring_demo.mvc.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * Created by Niki on 2018/6/21 8:33
 */
@Controller
@RequestMapping("/home")
public class HomeController {
    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String home() {
        System.out.println("测试页面");
        return "home";
    }
}
